tooltip: Replace hard-coded margins with theme
authornana-4 <hnmaigo@gmail.com>
Sat, 15 Aug 2020 13:44:03 +0000 (22:44 +0900)
committernana-4 <hnmaigo@gmail.com>
Sat, 15 Aug 2020 13:46:31 +0000 (22:46 +0900)
So we can easily adjust the widget sizing in the theme.

gtk/theme/Adwaita/_common.scss
gtk/ui/gtktooltipwindow.ui

index 429bd371f03cb1962c2802d9f5aee779c95e53b0..bddf62f6329d2d55d0121867ac6b5d0dbe58c8d4 100644 (file)
@@ -3604,10 +3604,14 @@ tooltip {
     color: white;
   }
 
-  padding: 4px;
+  padding: 10px;
   border-radius: 5px;
   box-shadow: none; // otherwise it gets inherited by windowframe.csd
   text-shadow: 0 1px black;
+
+  > box {
+    border-spacing: 6px;
+  }
 }
 
 
index fd2e7b7fd3cde55fabf6aa11e5acd7303bb6971b..127fa045e48f7752738fe7dc4b99068e230818bc 100644 (file)
@@ -6,11 +6,6 @@
     </style>
     <child>
       <object class="GtkBox" id="box">
-        <property name="spacing">6</property>
-        <property name="margin-top">6</property>
-        <property name="margin-bottom">6</property>
-        <property name="margin-start">6</property>
-        <property name="margin-end">6</property>
         <child>
           <object class="GtkImage" id="image">
             <property name="icon-name">image-missing</property>